<?php

namespace App\Http\Controllers\Admin;

/**
 * 签到配置管理
 */

use App\Http\Controllers\BaseController;
use App\Services\Tools\MapService;
use Illuminate\Http\Request;                //引用http请求类
use App\Exceptions\BasicException;          //引入框架异常处理类
use App\Response\Response;

class ScriptController extends BaseController
{
    public function sugarStatic(Request $request)
    {
        $date = $request->input('date');
        if(empty($date)){
            throw new BasicException('非法请求');
        }
        app('repo_game_sugar_statistics')->dayDataStatistics($date);
        return Response::sendData('ok');
    }
}